package com.dbdoc.service.impl;

import com.dbdoc.entity.CompanyInfoBase;
import com.dbdoc.mapper.CompanyInfoBaseMapper;
import com.dbdoc.service.ICompanyInfoBaseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
 * <p>
 * 企业信息基础表 服务实现类
 * </p>
 *
 * @author liuChengWen
 * @since 2020-12-28
 */
@Service
public class CompanyInfoBaseServiceImpl extends ServiceImpl<CompanyInfoBaseMapper, CompanyInfoBase> implements ICompanyInfoBaseService {

    @Resource
    CompanyInfoBaseMapper baseMapper;

    public Page<CompanyInfoBase> pageList(CompanyInfoBase entity, Integer pageNum, Integer pageSize){
        Page<CompanyInfoBase> page = new Page<>(pageNum.longValue(), pageSize.longValue());
        Wrapper<CompanyInfoBase> wrapper=new QueryWrapper<>(entity);
        Page<CompanyInfoBase> pageList =baseMapper.selectPage(page,wrapper);
        return pageList;
    }
}
